package com.gocoolmall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * API网关
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})//因为配置依赖中mybatis-plus.网关不需要数据，排除加的方法DataSourceAutoConfiguration.class
@EnableDiscoveryClient
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class,args);
    }
}
